#include <iostream>
using namespace std;
void palabraFinal(string &palabra1, char caracter);

int main()
{
    string palabra;
    char caracter;

    cin >> palabra;
    cin >> caracter;

    palabraFinal(palabra, caracter);
    cout << palabra;
    return 1;
}
void palabraFinal(string &palabra1, char caracter)
{
    palabra1=palabra1+caracter;
    return;
}
